package com.cup.wx.micro.service;

import java.util.List;
import java.util.Map;
/**
 * @Title:  WebchatMessageService.java   
 * @author: alan.deyu.zhao
 * @date:   Jan 3, 2019
 */
public interface WXMessageService {
	
	/**
	 * 
	 * @param industry_id1
	 * @param industry_id2
	 * @return
	 */
	public Map<String, Object> setIndustry(String industry_id1, String industry_id2);
	
	/**
	 * 
	 * @return {
	 *		"primary_industry":{"first_class":"运输与仓储","second_class":"快递"},
	 *		"secondary_industry":{"first_class":"IT科技","second_class":"互联网|电子商务"}
	 *		}
	 */
	public Map<String, Object> getIndustry();
	
	/**
	 * 
	 * @param templateIdShort
	 * @return
	 */
	public String getIndustryTemplateId(String templateIdShort);
	
	/**
	 * 
	 * @return
	 */
	public List<Map<String, Object>> getIndustryTemplateList();
	
	/**
	 * 发送模板数据
	 * @param openid 接收者openid
	 * @param templateId 模板ID
	 * @param url 模板跳转链接
	 * @param appid 所需跳转到的小程序appid
	 * @param pagepath 所需跳转到小程序的具体页面路径
	 * @param datas 模板数据
	 * @return
	 */
	public boolean sendTemplateMessage(String openid,
			String templateId, 
			String url,
			String appid,
			String pagepath,
			Map<String, Object> datas);
}
